package dao

import (
	"server/basic/config"
	"server/basic/model"
)

func UserName(name string) (user model.Users, err error) {
	err = config.DB.Where("").Find(&user).Error
	if err != nil {
		return model.Users{}, err

	}
	return user, err
}

func Take() (take []model.TakeSoutFoods, err error) {
	err = config.DB.Find(&take).Error
	if err != nil {
		return []model.TakeSoutFoods{}, err
	}
	return take, err
}
